<template>
  <div>
    <h1>儿子组件</h1>
    <h2>{{ myTitle }}</h2>
    <Grand-son></Grand-son>
  </div>
</template>

<script>
import GrandSon from "../components/GrandSon.vue";

export default {
  inject: ["title"],
  data() {
    return {};
  },
  components: {
    GrandSon,
  },
  computed: {
    myTitle() {
      return this.title();
    },
  },
};
</script>

<style>
</style>